package com.sskj.lib.bean;

import com.github.tifezh.kchartlib.chart.entity.IKLine;
import com.github.tifezh.kchartlib.chart.entity.IMinuteLine;
import com.sskj.munite.IMinute;

import java.util.Date;

public class StockBean implements IMinuteLine, IKLine, IMinute {

    /**
     * id : 2211
     * pid : 5
     * code : mpc_usdt
     * pname : MPC
     * price : 5.35950275
     * volume : 0.00
     * addtime : 1560405841
     * ctime : 2019-06-13 14:04:01
     */

    private String id;
    private String pid;
    private String code;
    private String pname;
    private String price;
    private String volume;
    private String addtime;
    private String ctime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }


    @Override
    public float getAvgPrice() {
        return 0;
    }

    @Override
    public float getPrice() {
        return Float.valueOf(price);
    }

    @Override
    public Date getMinuteDate() {
        return new Date(Long.valueOf(addtime) * 1000);
    }

    @Override
    public float getOpenPrice() {
        return Float.valueOf(price);

    }

    @Override
    public float getHighPrice() {
        return Float.valueOf(price);

    }

    @Override
    public float getLowPrice() {
        return Float.valueOf(price);

    }

    @Override
    public float getClosePrice() {
        return Float.valueOf(price);
    }

    @Override
    public float getVolume() {
        return Float.valueOf(volume);
    }

    @Override
    public void setClosePrice(float v) {

    }

    @Override
    public long getDatetime() {
        return 0;
    }

    @Override
    public float getUp() {
        return 0;
    }

    @Override
    public void setUp(float v) {

    }

    @Override
    public float getMb() {
        return 0;
    }

    @Override
    public void setMb(float v) {

    }

    @Override
    public float getDn() {
        return 0;
    }

    @Override
    public void setDn(float v) {

    }

    @Override
    public float getMA5Price() {
        return 0;
    }

    @Override
    public void setMA5Price(float v) {

    }

    @Override
    public float getMA10Price() {
        return 0;
    }

    @Override
    public void setMA10Price(float v) {

    }

    @Override
    public float getMA20Price() {
        return 0;
    }

    @Override
    public void setMA20Price(float v) {

    }

    @Override
    public float getK() {
        return 0;
    }

    @Override
    public void setK(float v) {

    }

    @Override
    public float getD() {
        return 0;
    }

    @Override
    public void setD(float v) {

    }

    @Override
    public float getJ() {
        return 0;
    }

    @Override
    public void setJ(float v) {

    }

    @Override
    public float getDea() {
        return 0;
    }

    @Override
    public void setDea(float v) {

    }

    @Override
    public float getDif() {
        return 0;
    }

    @Override
    public void setDif(float v) {

    }

    @Override
    public float getMacd() {
        return 0;
    }

    @Override
    public void setMacd(float v) {

    }

    @Override
    public float getRsi1() {
        return 0;
    }

    @Override
    public float getRsi2() {
        return 0;
    }

    @Override
    public float getRsi3() {
        return 0;
    }

    @Override
    public void setRsi1(float v) {

    }

    @Override
    public void setRsi2(float v) {

    }

    @Override
    public void setRsi3(float v) {

    }

    @Override
    public float getMA5Volume() {
        return 0;
    }

    @Override
    public void setMA5Volume(float v) {

    }

    @Override
    public float getMA10Volume() {
        return 0;
    }

    @Override
    public void setMA10Volume(float v) {

    }

    @Override
    public String getPriceStr() {
        return price;
    }
}
